package com.xy.exception.enums;

import com.xy.exception.ErrorEnum;

public class DocxExceptionEnum implements ErrorEnum {

    public static final DocxExceptionEnum DOCX_TYPE_NOT_EXIST = new DocxExceptionEnum(10001, "未找到该文件");
    public static final DocxExceptionEnum DOCX_SAVE_FAIL = new DocxExceptionEnum(10002, "文档内容读取保存失败");
    public static final DocxExceptionEnum DOCX_LABEL_NOT_EXIST = new DocxExceptionEnum(10003, "未找到该模板");
    public static final DocxExceptionEnum DOCX_WRITE_FAIL = new DocxExceptionEnum(10004, "文档数据写入失败");

    private int errCode;
    private String errMessage;

    DocxExceptionEnum(int errCode, String errMessage) {
        this.errCode = errCode;
        this.errMessage = errMessage;
    }

    @Override
    public int getErrCode() {
        return errCode;
    }

    @Override
    public String getErrMessage() {
        return errMessage;
    }
}
